package org.toy.wechat.gym.rpc.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.toy.wechat.core.constants.IOFieldNames;

/**
 * @author devin
 */
@Data
@NoArgsConstructor
public class WxSession {

    /**
     * 用户唯一标识
     */
    @JSONField(name = IOFieldNames.WX_OPENID)
    private String openId;

    /**
     * 会话秘钥
     */
    @JSONField(name = IOFieldNames.WX_SESSION_KEY)
    private String sessionKey;


    /**
     * 响应状态码
     */
    @JSONField(name = IOFieldNames.WX_ERRCODE)
    private Integer errorCode;

    /**
     * 响应消息
     */
    @JSONField(name = IOFieldNames.WX_ERRMSG)
    private String errMsg;

    @JSONField(name = IOFieldNames.UNION_ID)
    private String unionId;

}
